<div class="layui-form-item">
    <label class="layui-form-label">{$value['desc']}</label>
    <div class="layui-input-block" style="width: 30%;">
        <select class="layui-select {$value['class']}" style="{$value['style']}" name="{$value['name']}" lay-filter="" lay-search>
            <option value="0">{:translateStr('请选择')}</option>
                {foreach $value['option'] as $key=>$va}
                {if isset($va['id'])}
                    {if $value['isidtoname']}
                        {if $value['value']==$va['id']}
                            <option value="{$va['id']}" selected>{:translateStr($va['name'])}</option>
                        {else}
                            <option value="{$va['id']}">{:translateStr($va['name'])}</option>
                        {/if}
                    {else}
                        {if $value['value']==$va['name']}
                            <option value="{$va['name']}" selected>{:translateStr($va['name'])}</option>
                        {else}
                            <option value="{$va['name']}">{:translateStr($va['name'])}</option>
                        {/if}
                    {/if}
                {else}
                    {if $value['isidtoname']}
                        {if $value['value']==$key}
                            <option value="{$key}" selected>{:translateStr($va)}</option>
                        {else}
                            <option value="{$key}">{:translateStr($va)}</option>
                        {/if}
                    {else}
                        {if $value['value']==$va}
                            <option value="{$va}" selected>{:translateStr($va)}</option>
                        {else}
                            <option value="{$va}">{:translateStr($va)}</option>
                        {/if}
                    {/if}
                {/if}
                {/foreach}
        </select>
        <br>
        <span class="red" style="font-size: 10px">{$value['describe']}</span>
    </div>
</div>